package com.queclink.ycm.entity.data;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Arrays;

/**
 * @author jim.li
 * @email jim.li@queclink.com
 * @date 2021-12-21 16:23:00
 */
public abstract class Data {

    @JSONField(
            serialize = false
    )
    public Logger logger = LoggerFactory.getLogger(Data.class);
    protected String DataID;
    @JSONField(
            serialize = false
    )
    protected int dataSize;
    protected boolean isData;

    public Data() {
    }

    @JSONField(
            name = "IsData"
    )
    public boolean isData() {
        return this.isData;
    }

    @JSONField(
            name = "DataID"
    )
    public String getDataID() {
        return this.DataID;
    }

    public void setDataID(String dataID) {
        this.DataID = dataID;
    }

    public abstract String combine(JSONObject jsonObject) throws Exception;


}
